package com.vedeng.study.model;

import java.io.Serializable;
import lombok.Data;

/**
 * blog_content
 * @author 
 */
@Data
public class BlogContent implements Serializable {
    /**
     * 表自增id
     */
    private Integer id;

    /**
     * 博客id
     */
    private Long blogid;

    /**
     * 博客内容
     */
    private String blogcontent;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlogContent other = (BlogContent) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBlogid() == null ? other.getBlogid() == null : this.getBlogid().equals(other.getBlogid()))
            && (this.getBlogcontent() == null ? other.getBlogcontent() == null : this.getBlogcontent().equals(other.getBlogcontent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBlogid() == null) ? 0 : getBlogid().hashCode());
        result = prime * result + ((getBlogcontent() == null) ? 0 : getBlogcontent().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", blogid=").append(blogid);
        sb.append(", blogcontent=").append(blogcontent);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}